#!/usr/bin/env ruby

boot_location = [
  ["#{File.dirname(__FILE__)}/../config/boot.rb", ".."],
  ["#{File.dirname(__FILE__)}/boot.rb", "."]
].find{|path, root| File.file? path}

require boot_location.first
Reactive.run(ARGV + ['--root', File.join(File.dirname(__FILE__), boot_location.last)])
